<div class="content">

	<div class="header">
		<div class="page-title">
                    <div>
                        <h1><i class="icon-file-alt"></i><?php echo h($rowPageConf['name']); ?></h1>
                    </div>
        </div>		
	</div>
	
	<div class="container-fluid">
	
		<div class="btn-toolbar text-left">
			<a href="<?php echo $add_link; ?>" class="btn btn-primary"><i class="icon-plus"></i> Add News Item</a>			
		</div>					
	
		<div class="row-fluid">

            <!-- BEGIN Main Content -->
			<div class="row-fluid">
                    <div class="span12">
                        <div class="box">
                            <div class="box-title">
                                <h3><i class="icon-table"></i> <?php echo h($rowPageConf['name']); ?></h3>
                                <div class="box-tool">
                                
									<div class="control-group">
                                       <div class="controls">
                                       
<select  data-placeholder="Choose a Category" id="main_cat_field[parent_id]" name="main_cat_field[parent_id]" tabindex="1">
<option selected="selected" value="0">ROOT</option><option value="1" style="padding-left: 20px">|--&nbsp;loai hoa</option><option value="3" style="padding-left: 40px">|--&nbsp;hoa hong</option><option value="11" style="padding-left: 60px">|--&nbsp;nu hong</option><option value="12" style="padding-left: 60px">|--&nbsp;mong manh</option><option value="4" style="padding-left: 40px">|--&nbsp;hoa cam chuong</option><option value="10" style="padding-left: 60px">|--&nbsp;cam chuong</option><option value="2" style="padding-left: 20px">|--&nbsp;trai cay</option><option value="5" style="padding-left: 40px">|--&nbsp;trai dao tien</option><option value="7" style="padding-left: 20px">|--&nbsp;khogn can</option><option value="8" style="padding-left: 20px">|--&nbsp;khogn can</option><option value="9" style="padding-left: 20px">|--&nbsp;hoa hong</option></select>

                                       </div>
                                    </div>
                                                	
                                </div>
                            </div>
                            
                            <div class="box-content">
                            
								<table class="table fill-head">
                                    <thead>
                                        <tr>
                                            <th width="50px">#</th>
                                            <th>
                                                <a href='#'>Name</a>
<!--                                             	<i class="icon-chevron-up"></i> -->
                                            </th>
                                            <th width="150px">
                                            	<a href='#'>Last Update</a>
<!--                                             	<i class="icon-chevron-down"></i> -->
                                            </th>
                                            <th width="80px" style="text-align: center">Active</th>
                                            <th width="80px" style="text-align: center">Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                    <?php foreach ($rsContent as $rowContent) : ?>
                                        <tr>
                                            <td># <?php echo $rowContent['id']; ?></td>
                                            <td>
	                                            <a href='<?php echo $update_link. '/'.$rowContent['id']; ?>' title='<?php echo h($rowContent['name']); ?>'><?php echo h($rowContent['name']); ?></a>
                                            </td>
                                            <td><?php echo $rowContent['last_update']; ?></td>
                                            <td style="text-align: center">
                                            <?php if ($rowContent['active'] == 1) : ?>
                                            	<a href='<?php echo $active_link.'/'.$rowContent['id'].'/'.$pages->offset; ?>' title='Active' class='btn btn-circle btn-lime'><i class="icon-ok-sign"></i></a>
                                            <?php else : ?>
                                            	<a href='<?php echo $active_link.'/'.$rowContent['id'].'/'.$pages->offset; ?>' title='UnActive' class='btn btn-circle btn-gray'><i class="icon-remove-circle"></i></a>
                                            <?php endif; ?>                                            
                                            </td>
                                            <td style="text-align: center">
												<a href="javascript:confimDelete('<?php echo $delete_link. '/'.$rowContent['id']; ?>');" title='Delete' class="btn btn-small btn-danger"><i class="icon-trash"></i></a>                                            	
												<a href='<?php echo $update_link. '/'.$rowContent['id']; ?>' title='Update' class='btn btn-small btn-primary'><i class='icon-edit'></i></a>
                                            </td>
                                        </tr>
                                    <?php endforeach; ?>
                                    </tbody>
                                </table>
                                
								<div class="pagination text-right">
								<?php
									echo $pages->display_pages();
								?>
	                            </div>                                
                            
                            </div>
                            
                                             
                            
                        </div>
                    </div>
			</div>
			<!-- END Main Content -->
			
                			
			
		</div>
	</div>
</div>

